 // 基于准备好的dom，初始化echarts实例
    var myChart1 ;
    function initMyChart(e) {
    	myChart1 = echarts.init(e);
    	myChart1.setOption(option1);
    }
    function resetOption() {
    	myChart1.setOption(option1);
    }
    function resetOptionLegend(data) {
    	option1.legend.data = data;
    }

    function resetOptionSeries(index, data) {
    	option1.series[index].data = data;
    }

    // 指定图表的配置项和数据
    var option1 = {
	    backgroundColor: '#efefef',
	    title: {
	        text: '',
	        // x: 'center',
	        y: 'center',
			right:'45%',
	        textStyle: {
	            fontWeight: 'normal',
	            fontSize: '14',
	        }
	    },
	    tooltip: {
	        show: false,
	    },
	    legend: {
	        orient: 'vertical',
	        x: 'right',
	        y:'bottom',       
	        itemHeight:'8',
	        itemWidth:'8',/*
	        selected: {
	            '直达' : true,
	            '不直达' : true,
	        },*/
	        data:[]
	    },
	    series: [
	        {
	            name:'访问来源',
	            type:'pie',
	            center:['50%','50%'],
	            radius: ['60%', '80%'],
	            showAllSymbol:false,
	            showSymbol:false,
	            symbolOffset:[0,0],
	            // hoverAnimation: false,
	            avoidLabelOverlap: false,
	            legendHoverLink:false,
	            label: {
	                normal: {
	                    show: false,
	                    position: 'outside',
	                    textStyle: {
	                        fontSize: '12',
	                        color:'#cccccc',
	                    },
	                    formatter: "{b}({d}%)",  
	                },
	                emphasis: {
	                    show: false,
	                    textStyle: {
	                        fontSize: '14',
	                        // color:'#cccccc'
	                    },
	                    
	                }
	            },
	            
	            labelLine: {
	                normal: {
	                    show: false
	                }
	            },
	            data: []
	        },
	        {
	            name:'访问来源',
	            type:'pie',
	            center:['50%','50%'],
	            radius: ['89%', '90%'],
	            hoverAnimation: false,
	            avoidLabelOverlap: false,
	             labelLine: {
	                normal: {
	                    show: false
	                }
	            },
	            data:[]
	        },
	        
	    ]
	};